//
//  HJAttributedString.h
//  KaiChat
//
//  Created by lx on 2024/3/20.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HJAttributedStringFactory : NSObject

- (HJAttributedStringFactory *)initWithString:(NSString *)string maxWidth:(CGFloat)maxWidth font:(UIFont *)font lineSpacing:(CGFloat)lineSpacing alignment:(NSTextAlignment)alignment;
@property (nonatomic, assign, readonly) NSInteger numberOfLines;
@property (nonatomic, assign, readonly) CGSize size;
@property (nonatomic, strong, readonly) NSAttributedString *attributedString;
- (CGFloat)numberLineHeight:(NSInteger)number;



@end

NS_ASSUME_NONNULL_END
